package org.zn.mvcbase.controller;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.zn.commons.collection.Maps;
import org.zn.mvcbase.session.SynSessions;

/**
 * @ProjectName:91isoft_oa
 * @Description:
 * @Copyright: Copyright (c) 2016
 * 
 * @author: 周楠
 * @date 2016年3月25日 上午8:09:31
 */

public class HttpServletController {

	@Autowired
	protected HttpServletRequest request;

	@Autowired
	protected HttpSession session;

	@Autowired
	protected HttpServletResponse response;


	protected void putSynSession(String region, String key, Object value) {

		SynSessions.getSynSessions(session).putSynSession(region, key, value);
	
	}
	
	protected  Map<String, Object> getSynSessionregionMap(String region){
	
		return SynSessions.getSynSessions(session).getSynSessionRegionMap(region);
		
	}

	protected  Object getSynSessionRegionValue(String region,String key){
		
		return SynSessions.getSynSessions(session).getSynSessionRegionValue(region,key);
		
	}
	
	
	
}
